`define Zero 0
`define Valid 1'b1
`define Invalid 1'b0
`define Enable 1'b1
`define Disenable 1'b0
`define Rinst 0


//pe R instruction	--9?
`define ADD  6'b100000
`define SUB  6'b100010
`define AND  6'b100100
`define OR   6'b100101
`define XOR  6'b100110
`define SLL  6'b001010
`define SRL  6'b000010
`define SRA  6'b000011
`define JR   6'b001000


//pe I instruction	--8?
`define ADDI 6'b001001
`define ANDI 6'b001100
`define ORI  6'b001101
`define XORI 6'b001110
`define LW   6'b100011
`define SW   6'b101011
`define BEQ  6'b000100
`define BNE  6'b000101
`define LUI  6'b001111


//pe J instruction	--2?
`define J    6'b000110
`define JAL  6'b000111


//expand instruction
`define SLT    6'b101010
`define BGTZ   6'b010111
`define BLTZ   6'b000001
`define JALR   6'b001011
`define MULT   6'b011000
`define MULTU  6'b011001
`define DIV    6'b011010
`define DIVU   6'b011011
`define MFHI   6'b010000
`define MFLO   6'b010010
`define MTHI   6'b010001
`define MTLO   6'b010011
